﻿@model TestSystem.Domain.Entities.Candidate.Candidate

@{
    ViewBag.Title = "addCandidate";
    Layout = "~/Views/Shared/_adminLayout.cshtml";
}

<h2>Dodaj kandydata</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>

        <div class="editor-label">
            @Html.Label("Imię")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.firstName)
            @Html.ValidationMessageFor(model => model.firstName)
        </div>

        <div class="editor-label">
            @Html.Label("Nazwisko")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.secondName)
            @Html.ValidationMessageFor(model => model.secondName)
        </div>

        <div class="editor-label">
            @Html.Label("Email")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.Label("Stanowisko")
        </div>
        <div class="editor-field">
            @Html.DropDownList("Stanowisko",new List<SelectListItem>
                                                {
                                                    new SelectListItem {Text = "Programista",Value = "1"}
                                                })
            @Html.ValidationMessageFor(model => model.positionId)
        </div>

        <p>
            <input type="submit" value="Dodaj" />
        </p>
    </fieldset>
}